package com.rrjjg.app;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * ----------------------------------------------------------------------------- <br>
 * 功能 :  <br>
 * 作者 : Vayne <br>
 * 时间 : 2023/4/6 <br>
 */
@Slf4j
@MapperScan("com.rrjjg.app.admin.data.storage.mapper")
@SpringBootApplication
public class AdminMain {
    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext run = SpringApplication.run(AdminMain.class, args);
        log.info("AdminMain is Successfully started");
    }

    @Bean
    public RestTemplate restTemplate(){
        return  new RestTemplate();
    }
}